package cn.newjava.book.bean;

import java.io.Serializable;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * (Category)实体类
 *
 * @author 陈华强
 * @since 2019-10-22 13:13:10
 */
@Data
public class Category implements Serializable {
    private static final long serialVersionUID = 834851743274698035L;

    private Integer id;

    @NotBlank(message = "")
    @Length(min = 1, max = 10)
    private String name;

}